package chabernac.android.wordbattle.model;

public class Letter {
  private final char myChar;
  private boolean isSelected;
  
  private final int row;
  private final int column;
  
  public Letter(char aC, int aColumn, int aRow) {
    super();
    myChar = aC;
    row = aRow;
    column = aColumn;
  }

  public boolean isSelected() {
    return isSelected;
  }

  public void setSelected(boolean aSelected) {
    isSelected = aSelected;
  }

  public char getChar() {
    return myChar;
  }

  public String getLetter() {
    return new String(new char[]{myChar});
  }

  public int getRow() {
    return row;
  }

  public int getColumn() {
    return column;
  }
  
  public String toString(){
    return "<Letter row='" + row + "' column='" + column + "'>" + myChar + "</Letter>"; 
  }
}
